﻿using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace MagickConverter
{
    public static class MagickExtensions
    {
        public static IServiceCollection AddMagickServices(this IServiceCollection services, IConfiguration configuration)
        {
            services.Configure<MagickSettings>(configuration.GetSection("MagickSettings"));
            services.AddSingleton<IMagickService, MagickService>();

            return services;
        }
    }
}
